package what.the.fun.jdbc;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import what.the.fun.domain.AnswerResult;

public class AnswerResultRowMapper implements RowMapper<AnswerResult>{

	@Override
	public AnswerResult mapRow(ResultSet arg0, int arg1) throws SQLException {
		AnswerResultExtractor extractor = new AnswerResultExtractor();
		return extractor.extractData(arg0);
	}

}
